#define _CRT_SECURE_NO_WARNINGS 1
#include"Sort.h"

void TestQuickSort()
{
	int a[] = { 6,1,2,7,9,3,4,5,10,8 };
	Print(a, sizeof(a) / sizeof(a[0]));
	QuickSort(a, 0, sizeof(a) / sizeof(a[0]) - 1);
	Print(a, sizeof(a) / sizeof(a[0]));
}

void TestQuickSort2()
{
	int a[] = { 6,1,2,7,9,3,4,5,10,8 };
	Print(a, sizeof(a) / sizeof(a[0]));
	QuickSort2(a, 0, sizeof(a) / sizeof(a[0]) - 1);
	Print(a, sizeof(a) / sizeof(a[0]));
}
int main()
{
	TestQuickSort();
	//TestQuickSort2();
	return 0;
}